import request from '@/utils/request.js'

export const studentListService = (params) => {
    return request.get('/student', {params: params})
}

export const studentAddService = (data) => {
    return request.post('/student/add', data)
}

export const studentUpdateService = (data) => {
    return request.put('/student/update', data)
}

export const studentDeleteService = (id) => {
    return request.delete('/student/delete?id=' + id)
}

export const studentDetailService = (id) => {
    return request.get('/student/detail?id=' + id)
}

export const classesListService = () => {
    return request.get('/classes')
}